<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>알림리스트 포틀릿</title>
</head>
<body>
	알림리스트<hr>
	<table border="1" cellpadding="6px" width="800px">
		<tr bgcolor="lightgray">
			<th width="20px"><img src="/${initParam.context_root}/img/typeThree/checkBox.png"/></th>
			<th><b>알림제목</b></th>
			<th width="350px"><b>알림내용</b></th>
			<th><b>도착일시</b></th>
		</tr>
		<%-- <c:forEach items="${requestScope.알림내용목록}" var="alarm" varStatus="i"> --%>
			<c:forEach items="${requestScope.listAlarm.list}" var="alarm" varStatus="status">
				<tr>
					<td><input type="checkbox" id="alarmconfirm"></td>
					<td><c:out value="${alarm.alarmSubject }"/>&nbsp;</td>
					<td><c:out value="${alarm.alarmContent }"/>&nbsp;</td>
					<td><c:out value="${alarm.reachTime }"/>&nbsp;</td>
				</tr>
			</c:forEach>
	</table>
	
	<br>
<center>
<table cellpadding=12 cellspacing=0 width=1100px>
		<tr><td>
		<c:choose >
		<c:when test="${ requestScope.listAlarm.pageDTO.previousPageGroup }"> 
			<a href="/${initParam.context_root }/typeThree.do?page=${requestScope.listAlarm.pageDTO.currentPage -1}">◀</a>
		</c:when>
		<c:otherwise>◀</c:otherwise>
		</c:choose>
			<c:forEach begin="${requestScope.listAlarm.pageDTO.startPageOfPageGroup }" end="${requestScope.listAlarm.pageDTO.endPageOfPageGroup }" step="1" var="i">
				&nbsp;<font color=orange><B><a href="/${initParam.context_root }/typeThree.do?page=${i }">${i }</a></B></font>&nbsp;&nbsp;	
			</c:forEach>
		<c:choose >
		<c:when test="${ requestScope.listAlarm.pageDTO.nextPageGroup }"> 
			<a href="/${initParam.context_root }/typeThree.do?page=${requestScope.listAlarm.pageDTO.currentPage +1 }">▶</a>
		</c:when>
		<c:otherwise>▶</c:otherwise>
		</c:choose>
		</td></tr>
</table>
</center>
</body>
</html>